package com.haoxuer.imake.fields;

import java.io.Serializable;

public class FieldBean implements Serializable,Comparable<FieldBean> {

    private String title;

    private String id;

    private String className;

    private String type;

    private String placeholder;

    private Integer sortNum;


    private String col;

    public String getCol() {
        return col;
    }

    public void setCol(String col) {
        this.col = col;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getPlaceholder() {
        return placeholder;
    }

    public void setPlaceholder(String placeholder) {
        this.placeholder = placeholder;
    }

    public Integer getSortNum() {
        return sortNum;
    }

    public void setSortNum(Integer sortNum) {
        this.sortNum = sortNum;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    @Override
    public String toString() {
        return "FieldBean{" +
                "title='" + title + '\'' +
                ", id='" + id + '\'' +
                ", className='" + className + '\'' +
                ", type='" + type + '\'' +
                ", placeholder='" + placeholder + '\'' +
                ", sortNum=" + sortNum +
                '}';
    }
    
    @Override
    public int compareTo(FieldBean o) {
        return this.getSortNum().compareTo(o.getSortNum());
    }
}
